﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Protegidos/Pessoas/GENTE_PesDt.master" AutoEventWireup="true" CodeFile="pDocumentos.aspx.cs" Inherits="Protegidos_Pessoas_DadosPessoa_pDocumentos" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register TagPrefix="uc1" TagName="dtDocRG"              Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/dtDocRG.ascx" %>
<%@ Register TagPrefix="uc1" TagName="dtDocReservista"      Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/dtDocReservista.ascx" %>
<%@ Register TagPrefix="uc1" TagName="dtDocCTPS"            Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/dtDocCTPS.ascx" %>
<%@ Register TagPrefix="uc1" TagName="dtDocPis"             Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/dtDocPis.ascx" %>
<%@ Register TagPrefix="uc1" TagName="dtDocTituloEleitor"   Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/dtDocTituloEleitor.ascx" %>
<%@ Register TagPrefix="uc1" TagName="dtDocCNH"   Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/dtDocCNH.ascx" %>

<%@ Register TagPrefix="uc1" TagName="linkImg"    Src="~/Protegidos/Pessoas/DadosPessoa/_documentos/linkImg.ascx"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphSubConteudo" Runat="Server">

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

    <script type="text/javascript">

        //RG
        function ShowHistRG() {
            window.radopen("_popup/ppDocRGHist.aspx", "RadWindow1");
            return false;
        }
        function ShowInsertRG() {
            window.radopen("_popup/ppUpDocRG.aspx", "RadWindow1");
            return false;
        }
        function ShowEdittRG(id) {
            window.radopen("_popup/ppUpDocRG.aspx?Id=" + id, "RadWindow1");
            return false;
        }

        //Reservista
        function ShowHistReservista() {
            window.radopen("_popup/ppDocReservistaHist.aspx", "RadWindow1");
            return false;
        }
        function ShowInsertReservista() {
            window.radopen("_popup/ppUpDocReservista.aspx", "RadWindow1");
            return false;
        }
        function ShowEdittReservista(id) {
            window.radopen("_popup/ppUpDocReservista.aspx?Id=" + id, "RadWindow1");
            return false;
        }

        //CTPS
        function ShowHistCTPS() {
            window.radopen("_popup/ppDocCTPSHist.aspx", "RadWindow1");
            return false;
        }
        function ShowInsertCTPS() {
            window.radopen("_popup/ppUpDocCTPS.aspx", "RadWindow1");
            return false;
        }
        function ShowEdittCTPS(id) {
            window.radopen("_popup/ppUpDocCTPS.aspx?Id=" + id, "RadWindow1");
            return false;
        }

        //CNH
        function ShowHistCNH() {
            window.radopen("_popup/ppDocCNHHist.aspx", "RadWindow1");
            return false;
        }
        function ShowInsertCNH() {
            window.radopen("_popup/ppUpDocCNH.aspx", "RadWindow1");
            return false;
        }
        function ShowEdittCNH(id) {
            window.radopen("_popup/ppUpDocCNH.aspx?Id=" + id, "RadWindow1");
            return false;
        }

        //Pis
        function ShowHistPis() {
            window.radopen("_popup/ppDocPisHist.aspx", "RadWindow1");
            return false;
        }
        function ShowInsertPis() {
            window.radopen("_popup/ppUpDocPis.aspx", "RadWindow1");
            return false;
        }
        function ShowEdittPis(id) {
            window.radopen("_popup/ppUpDocPis.aspx?Id=" + id, "RadWindow1");
            return false;
        }

        //TituloEleitor
        function ShowHistTituloEleitor() {
            window.radopen("_popup/ppDocTituloEleitorHist.aspx", "RadWindow1");
            return false;
        }
        function ShowInsertTituloEleitor() {
            window.radopen("_popup/ppUpDocTituloEleitor.aspx", "RadWindow1");
            return false;
        }
        function ShowEdittTituloEleitor(id) {
            window.radopen("_popup/ppUpDocTituloEleitor.aspx?Id=" + id, "RadWindow1");
            return false;
        }

        function refreshGrid(arg) {
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("arg");
        }

    </script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>      
    <telerik:AjaxSetting AjaxControlID="RadPanelBar1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>                                                             
</AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" >
</telerik:RadAjaxLoadingPanel> 

<telerik:RadWindowManager ID="RadWindowManager2" runat="server">
    <Windows>
        <telerik:RadWindow  ID="RadWindow1" runat="server" Height="400px" Width="500px" ReloadOnShow="true" Modal="true"
            ShowContentDuringLoad="false" VisibleStatusbar="false" Behaviors="Close, Move, Resize, Maximize" />
    </Windows>
</telerik:RadWindowManager>

<table width="99%" align="center">
    <tr>
        <td>
            <div class="Titulo01">Documentação</div>
            <div class="Titulo02">Pessoas</div>
        </td>    
    </tr>
    <tr>
        <td>
        
            <telerik:RadPanelBar
                runat="server" ID="RadPanelBar1"
                Width="99%" Height="280px"
                ExpandMode="SingleExpandedItem" Skin="Telerik">

                <Items>
                    
                    <%--INICIO - RG--%>
                    <telerik:RadPanelItem Text="Documento de Identidade (RG)"  >
                        <ItemTemplate>
                            
                            <!-- Img RG -->
                            <uc1:linkImg ID="RG" TipoDoc="RG" runat="server" />
                            
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!-- Doc RG -->
                                    <uc1:dtDocRG ID="dtDocRG1" runat="server" />     
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - RG--%>
                    
                    <%--INICIO - CARTEIRA RESERVISTA--%>
                    <telerik:RadPanelItem Text="Carteira de Reservista">
                        <ItemTemplate>
                            
                            <!-- Img Resevita -->
                            <uc1:linkImg ID="Resevita" TipoDoc="Resevita" runat="server" />
                            
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!-- Doc Reservista -->
                                    <uc1:dtDocReservista ID="dtDocReservista1" runat="server" />    
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - CARTEIRA RESERVISTA--%>
                    
                    <%--INICIO - CARTEIRA DE TRABALHO--%>
                    <telerik:RadPanelItem Text="Carteira de Trabalho e Previdência Social (CTPS)">
                        <ItemTemplate>
                            
                            <!-- Img CTPS -->
                            <uc1:linkImg ID="CTPS" TipoDoc="CTPS" runat="server" />
                            
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!-- Doc CTPS -->
                                    <uc1:dtDocCTPS ID="dtDocCTPS1" runat="server" />
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - CARTEIRA DE TRABALHO--%>
                    
                    <%--INICIO - CNH--%>
                    <telerik:RadPanelItem Text="Carteira Nacional de Habilitação (CNH)">
                        <ItemTemplate>
                            
                            <!-- Img CNH -->
                            <uc1:linkImg ID="CNH" TipoDoc="CNH" runat="server" />
                            
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!-- Doc CNH -->
                                    <uc1:dtDocCNH ID="dtDocCNH1" runat="server" />
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - CNH--%>
                    
                    <%--INICIO - CPF--%>
                    <telerik:RadPanelItem Text="CPF">
                        <ItemTemplate>
                            <div class="LinkPanelBar"><a href="#" ></a></div>
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <table width="98%" class="textoCZ_12B" align="right">
                                        <tr>
                                            <td> 
                                            
                                                <table class="textoCZ_12B">
                                                    <tr>
                                                        <td style="width: 150px">Número:</td>
                                                        <td class="textoCZ_12">323.843.168-42</td>
                                                    </tr>
                                                </table>
                                            
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                            
                                            <asp:Button ID="Button1" runat="server" Text="Upload" Width="110px" CausesValidation="true"/>&nbsp;&nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - CPF--%>
                    
                    <%--INICIO - PIS--%>
                    <telerik:RadPanelItem Text="PIS/PASEP">
                        <ItemTemplate>
                            
                            <!-- Img PIS -->
                            <uc1:linkImg ID="PIS" TipoDoc="PIS" runat="server" />
                            
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!-- Doc PIS -->
                                    <uc1:dtDocPis ID="dtDocPis1" runat="server" />
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - PIS--%>
                    
                    <%--INICIO - TITULO ELEITOR--%>
                    <telerik:RadPanelItem Text="Título de Eleitor">
                        <ItemTemplate>
                            
                            <!-- Img TituloEleitor -->
                            <uc1:linkImg ID="TituloEleitor" TipoDoc="TituloEleitor" runat="server" />
                            
                        </ItemTemplate>
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    
                                    <!-- Doc Titulo Eleitor -->
                                    <uc1:dtDocTituloEleitor ID="dtDocTituloEleitor1" runat="server" />
                                    
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <%--FIM - TITULO ELEIOR--%>
                    
                </Items>
            </telerik:RadPanelBar>

        </td>
    </tr>
</table>
</asp:Content>

